
<div class="x_panel">
    <form class="form-horizontal" id="findForm">
        <div class="row">
            <label class="control-label col-md-1">菜单名称：</label>
            <div class="col-md-2 col-sm-1 col-xs-1" style="margin: 0; padding: 0;">
                <input style="width: 100%" type="text" class="form-control" name="menuName" th:value="${menuName}" />
            </div>
            <div class="col-md-2 col-sm-1 col-xs-1" style="margin: 0; padding: 0;">
                <input style="display: none" type="text" class="form-control"  />
            </div>
            <button  type="button" class="btn btn-primary pull-right" onclick="find()">查询</button>
        </div>
    </form>
</div>
<div class="table-responsive">
    <table class="table table-striped jambo_table bulk_action">
        <thead>
        <tr class="headings">
            <th class="column-title" style="width: 10%">编号</th>
            <th class="column-title" style="width: 30%">菜单名称</th>
            <th class="column-title" style="width: 10%">层级</th>
            <th class="column-title" style="width: 25%">菜单归属</th>
            <th class="column-title" style="width: 30%">操作</th>
        </tr>
        </thead>
        <tbody>
        <tr class="even pointer" style="text-align: center" th:each="data,iterStat : ${datas.content}">
            <td th:text="${iterStat.count}">1001</td>
            <td th:text="${data.menuName}">1001</td>
            <td th:text="${data.level}">2017-01-01</td>
            <td th:text="${data.menuAttribution}">部件管理</td>
            <td th:if="${data.level != '1'}">
                <button name="update" class="fa fa-pencil-square-o btn btn-round btn-default" th:id="${data.menuId}" type="button" onclick="update(this)">修改</button>
                <button name="delete" class="fa fa-minus-circle btn btn-round btn-default" th:id="${data.menuId}" type="button"  onclick="deletecase(this)">删除</button>
            </td>
            <td th:if="${data.level == '1'}">
                <button class="fa fa-pencil-square-o btn btn-round btn-default" type="button" disabled>修改</button>
                <button class="fa fa-minus-circle btn btn-round btn-default" type="button" disabled>删除</button>
            </td>
        </tr>
        </tbody>
    </table>

    <div id="pagination" class="col-md-12 pagination" th:replace="pagination :: pagination"></div>
</div>
<script type="text/javascript" th:inline="javascript">
    /*<![CDATA[*/

    function alertUpDel() {
        $.MsgBox.Alert("提示", "一级菜单不提供修改、删除功能！");
    }

    /*]]>*/
</script>